import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 对接参数-中天商品
 */
@Entity('order_zhongtian_goods')
export class OrderZhongtianGoodsEntity extends BaseEntity {
    /**
     * 球镜度数
     */
    @Column({ type: 'varchar', length: 50, nullable: true, name: 'c_ball', comment: '球镜度数' })
    c_ball: string;

    /**
     * 品牌编码
     */
    @Column({ type: 'varchar', length: 50, nullable: true, name: 'c_brandcode', comment: '品牌编码' })
    c_brandcode: string;

    /**
     * 品牌名称
     */
    @Column({ type: 'varchar', length: 100, nullable: true, name: 'c_brandname', comment: '品牌名称' })
    c_brandname: string;

    /**
     * 品种编码
     */
    @Column({ type: 'varchar', length: 100, nullable: true, name: 'c_breedcode', comment: '品种编码' })
    c_breedcode: string;

    /**
     * 品种名称
     */
    @Column({ type: 'varchar', length: 255, nullable: true, name: 'c_breedname', comment: '品种名称' })
    c_breedname: string;

    /**
     * 颜色编码
     */
    @Column({ type: 'varchar', length: 50, nullable: true, name: 'c_colorcode', comment: '颜色编码' })
    c_colorcode: string;

    /**
     * 颜色名称
     */
    @Column({ type: 'varchar', length: 100, nullable: true, name: 'c_colorname', comment: '颜色名称' })
    c_colorname: string;

    /**
     * 成本价
     */
    @Column({ type: 'varchar', length: 500, nullable: true, name: 'c_cprice', comment: '成本价' })
    c_cprice: string;

    /**
     * 含税价
     */
    @Column({ type: 'varchar', length: 500, nullable: true, name: 'c_hcprice', comment: '含税价' })
    c_hcprice: string;

    /**
     * 厂商编码
     */
    @Column({ type: 'varchar', length: 50, nullable: true, name: 'c_mpcode', comment: '厂商编码' })
    c_mpcode: string;

    /**
     * 厂商名称
     */
    @Column({ type: 'varchar', length: 100, nullable: true, name: 'c_mpname', comment: '厂商名称' })
    c_mpname: string;

    /**
     * 柱镜度数
     */
    @Column({ type: 'varchar', length: 500, nullable: true, name: 'c_pole', comment: '柱镜度数' })
    c_pole: string;

    /**
     * 批发价
     */
    @Column({ type: 'varchar', length: 500, nullable: true, name: 'c_pprice', comment: '批发价' })
    c_pprice: string;

    /**
     * 类型编码
     */
    @Column({ type: 'varchar', length: 20, nullable: true, name: 'c_typecode', comment: '类型编码' })
    c_typecode: string;

    /**
     * 单位
     */ 
    @Column({ type: 'varchar', length: 20, nullable: true, name: 'c_unit', comment: '单位' })
    c_unit: string;

    /**
     * 更新时间
     */
    @Column({ type: 'varchar', length: 50, nullable: true, name: 'c_updatetime', comment: '更新时间' })
    c_updatetime: string;

    /**
     * 原价
     */
    @Column({ type: 'varchar', length: 500, nullable: true, name: 'c_zprice', comment: '原价' })
    c_zprice: string;
}